package com.flyqiu.flow.model.entity;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyqiu.common.mybaits.plus.type.MyBaitsFastJson2ObjectHandler;
import com.flyqiu.flow.model.entity.base.FlowBaseDao;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(Comment.TABLE_NAME)
public class Comment extends FlowBaseDao {
    public static final String TABLE_NAME = "FLY_FLOW_HI_COMMENT";
    /**
     * 流程实例id
     */
    @TableField("PROC_INST_ID_")
    private String procInstId;
    /**
     * 活动id
     */
    @TableField("ACT_ID_")
    private String actId;
    /**
     * 流程实例id
     */
    @TableField("ACT_INST_ID_")
    private String actInstId;
    /**
     * 评论类型
     */
    @TableField("TYPE_")
    private String type;
    /**
     * 评论动作
     */
    @TableField("ACTION_")
    private String action;
    /**
     * 评论内容
     */
    @TableField("MESSAGE_")
    private String message;
    /**
     * 扩展参数
     */
    @TableField(value = "EXT_PARAMS_",typeHandler = MyBaitsFastJson2ObjectHandler.class)
    private JSONObject extParams;
    /**
     * 创建时间
     */
    @TableField("CREATE_TIME_")
    private LocalDateTime createTime;
    /**
     * 租户id
     */
    @TableField("TENANT_ID_")
    private String tenantId;
}
